package com.teach.service.shop;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.teach.dto.ShopProductSearch;
import com.teach.entity.Product;

public interface ShopGoodsService {

List<Product> listAll();
	
	List<Product> productList(Long productId);

	Product get(Long productId);
	
	void add(Product product);
	
	void update(Product product);
	
	void delete(Long productId);
	
	PageInfo<Product> page(ShopProductSearch search);
	
	List<Product> selectByName(String mohuName);//模糊查询取销量前三
	
	List<Product>selectByProductID(Long productId);
}
